package com.chixing.day09_innerclass.order;
/*
    所以订单的抽象父类
    封装了订单的共有属性与方法
*/
public abstract class Order implements OrderApi {
    private int orderId;
    private String orderName;
    private int orderPrice;
    private int orderNum;
    private String orderDate;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public int getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(int orderPrice) {
        this.orderPrice = orderPrice;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public Order(){}
    public Order(int orderId, String orderName, int orderPrice, int orderNum, String orderDate) {
        this.orderId = orderId;
        this.orderName = orderName;
        this.orderPrice = orderPrice;
        this.orderNum = orderNum;
        this.orderDate = orderDate;
    }

    @Override
    public String toString() {
        return "Oreder{" +
                "orderId=" + orderId +
                ", orderName='" + orderName + '\'' +
                ", orderPrice=" + orderPrice +
                ", orderNum=" + orderNum +
                ", orderDate='" + orderDate + '\'' +
                '}';
    }
}
